import { http } from '../service';

// 获取用户认证地址
export function getAuthUrl(params: any) {
  return http.middleware({
    url: `/system/Rest/user/esign/getAuthUrl`,
    method: 'GET',
    params,
  });
}

// 检查设置印章是否授权
export function checkAuthorize(params: any) {
  return http.middleware({
    url: `/system/Rest/user/esign/seal/checkAuthorize`,
    method: 'GET',
    params,
  });
}

// 获取当前用户印章
export function getPersonalSeal(params: any) {
  return http.middleware({
    url: `/system/Rest/user/esign/seal`,
    method: 'GET',
    params,
  });
}

// 图片印章上传或更新
export function updatePersonalSeal(params: any) {
  return http.middleware({
    url: `/system/Rest/user/esign/seal/upload`,
    method: 'POST',
    params,
  });
}
